package com.emergency.db.dao;

import com.emergency.db.domain.Dictionary;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

//数据字典
public interface DictionaryDao extends JpaRepository<Dictionary, Long>, JpaSpecificationExecutor<Dictionary> {
    @Query("from Dictionary order by parent asc")
    List<Dictionary> find();
}
